<?php
apf_require_page("Hr_Layout_Default");
apf_require_class("Util_BaseUrls");
class Hr_Staff_AddPage extends Hr_Layout_DefaultPage {
    public function get_view () {
        return "Add";
    }

    public static function use_boundable_styles() {
        $path = apf_classname_to_path(__CLASS__);
        return array_merge(parent::use_boundable_styles(), array($path."Add.css"));
    }
    public static function use_boundable_javascripts() {
        $path = apf_classname_to_path(__CLASS__);
        return array_merge(parent::use_boundable_javascripts(), array($path."Add.js"));
    }
    public static function use_styles() {
        return array_merge(parent::use_styles(),
            array(HrPageHelper::pure_static_url("/hrcss/datepicker.css"))
        );
    }
    public static function use_javascripts(){
        return array_merge(parent::use_javascripts(),
            array(HrPageHelper::pure_static_url("/js/bootstrap-datepicker.js"))
        );
    }
    public static function use_component() {
        return array_merge(parent::use_component(),
                array(
                        'Hr_MultiPage',
                        'Hr_StaffMenu'
                )
        );
    }
    public function get_title(){
        return $this->get_site_title()."员工入职";
    }
}